package com.nwl.crm.dao;

import com.nwl.crm.dto.PlatformDto;
import com.nwl.crm.dto.RoleDto;
import com.nwl.crm.po.Platform;
import com.nwl.crm.po.SysRole;
import com.nwl.crm.po.SysRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysRoleMapper {

    /**
     * 分页获取数据
     * @param dto
     * @return
     */
    long countBy(RoleDto dto);
    List<SysRole> layuiList(RoleDto dto);

    long countByExample(SysRoleExample example);

    int deleteByExample(SysRoleExample example);

    int deleteByPrimaryKey(String id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    List<SysRole> selectByExample(SysRoleExample example);

    SysRole selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByExample(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
}